<template>
    <div class="community">
        <div class="top">
            <van-tabs v-model="active1" background="#160742" title-active-color="#50E7E2" title-inactive-color="#fff">
                <van-tab title="广场">
                    <div class="search">
                        <div class="inp">
                            <form action="/">
                                <van-search v-model="value" shape="round" background="#1B1344" placeholder="请输入搜索关键词" />
                            </form>
                        </div>
                    </div>
                    
                </van-tab>
                <van-tab title="关注">内容 2</van-tab>
            </van-tabs>
        </div>
    </div>
</template>

<script>
import carItem from "@/components/cardPicText.vue"
export default {
    name: "Community",
    data() {
        return {
            active1: 0,
            active2: 0,
            value: "",
        }
    },
    components:{
        carItem
    },
    created(){
        this.axios({
                method: 'get',
                url: '/event',
                params:{
                    pagesize:20
                }
            }).then(res => {
                  

            }).catch(err => {
                  
            })
    }
}
</script>

<style lang="less" scoped>
.community {
    background-color: #160742;
}

.top {
    /deep/.van-tab {
        width: 60px;
        color: #fff;
        flex: none;
    }

    /deep/.van-tabs__line {
        background-color: #50E7E2;
    }

    .search {

        width: 94%;
        margin: 20px 3%;

        .inp {
            width: 100%;

            /deep/.van-search {
                padding: 0px 0px;
                height: 30px;
            }

            .van-cell {
                height: 30px;
                color: #fff;
            }

            .van-search__content {
                background-color: #271A4F;
                padding-left: 0px;
            }

            /deep/.van-field__control {
                color: #fff;
            }

            /deep/.van-field__left-icon {
                margin-left: 10px;
                margin-right: 10px;
            }

        }

        .icon {
            width: 25px;
        }
    }

    .super-record {
        .toggle {
            /deep/.van-tab {
                width: 80px;
                color: #fff;
            }
        }

    }
    /deep/.van-tabs__content{
        color: #fff;
    }
}
</style>